package com.ly.cloud.api.fallback;

import com.ly.cloud.api.ISysBaseAPI;
import com.ly.common.core.bean.R;
import com.ly.common.core.bean.dto.MsgDTO;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.util.Set;

/**
 * 系统服务-fallback
 *
 * @author jeecg
 */
@Slf4j
public class SysBaseAPIFallback implements ISysBaseAPI {

    @Setter
    private Throwable cause;

    @Override
    public void sendMsg(MsgDTO dto) {
    }

    @Override
    public Set<String> getUserRoleSetById(String userId) {
        return null;
    }

    @Override
    public Set<String> getUserPermissionSet(String userId) {
        return null;
    }

    @Override
    public R getTenantById(String id) {
        return R.ok("暂时无法获取接口数据");
    }
    // @Override
    // public DynamicDataSourceModel getDynamicDbSourceByCode(String dbSourceCode) {
    //     return null;
    // }
}
